package HomeWork.Extends_04;

public class Cat extends Animal{
    public Cat() {
    }

    public Cat(String color, int age) {
        super(color, age);
    }

    @Override
    protected void eat(String something) {
        System.out.println(this.getAge() + "岁的" + this.getColor() + "颜色的小猫在吃" + something);
    }

    public void catchMouse(){
        System.out.println("小猫会抓老鼠");
    }
}
